#ifndef PROTOCOL_OOP_H
#define PROTOCOL_OOP_H

#include "global_var.h"
class protocol_oop
{
public:
    protocol_oop();
    INT32U cosem_bin2_unit(INT8U *bin, INT8U size);
    INT16U  get_cosem_data_len(INT8U *data, INT8U *len_size);
    INT16U set_cosem_data_len(INT8U *data,INT16U len);
    INT16U  makeOOP0907UpdateFrame(INT8U  *buf,INT16U buf_len,INT8U *resp);
    INT8U check_frame_header_gb_oop(INT8U *frame);
    INT8U check_frame_body_gb_oop(INT8U* frame,INT16U recv_len);
};

#endif // PROTOCOL_OOP_H
